package com.base.controller;

import com.base.service.EmpiColumnsService;
import com.base.utils.Result;
import com.base.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wnhuang
 * @Package com.base.controller
 * @date 2021-02-08 20:49
 */
@RestController
@RequestMapping("/columns")
public class EmpiColumnContoller {

    @Autowired
    EmpiColumnsService empiColumnsService;

    @GetMapping("/getAll")
    public Result getAll() {
        return ResultUtil.success(empiColumnsService.list());
    }
}
